package com.jw.blog.wblog.controller.admin;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author wan Email-wlf18726994755@163.com
 * @version 1.0
 * @className AdminIndexController
 * @date 2020/6/21 11:05
 **/
@RestController
@RequestMapping("/admin")
public class AdminIndexController {

    @GetMapping("/index_v1")
    public ModelAndView indexV(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/index_v1");
        return view;
    }

    @GetMapping("/log/log")
    public ModelAndView log(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/log/log");
        return view;
    }
    @GetMapping("/charts/eCharts")
    public ModelAndView eCharts(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/charts/eCharts");
        return view;
    }
    @GetMapping("/blog/blogTable")
    public ModelAndView blogTable(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/blog/blogTable");
        return view;
    }

    @GetMapping("/blog/addBlog")
    public ModelAndView addBlog(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/blog/addBlog1");
        return view;
    }

    @GetMapping("/blog/findBlog")
    public ModelAndView findBlog(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/blog/findBlog");
        return view;
    }

    @GetMapping("/blog/blogType")
    public ModelAndView blogType(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/blog/blogType");
        return view;
    }

    @GetMapping("/resource/resource")
    public ModelAndView resource(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/resource/resource");
        return view;
    }

    @GetMapping("/visit/visit")
    public ModelAndView visit(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/visit/visit");
        return view;
    }

    @GetMapping("/visit/visitTable")
    public ModelAndView visitTable(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/visit/visitTable");
        return view;
    }

    @GetMapping("/visit/black")
    public ModelAndView black(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/visit/black");
        return view;
    }

    @GetMapping("/links/links")
    public ModelAndView links(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/links/links");
        return view;
    }

    @GetMapping("/links/isApplyLinks")
    public ModelAndView isApplyLinks(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/links/isApplyLinks");
        return view;
    }


    @GetMapping("/pics/pics")
    public ModelAndView pics(){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/pics/pics");
        return view;
    }
    @GetMapping("/blog/updateBlog")
    public ModelAndView updateBlog(@RequestParam(value = "id") Integer id){
        ModelAndView view = new ModelAndView();
        view.setViewName("admin/blog/updateBlog");
        return view;
    }

}
